package com.pc.ipushpin.business.service.impl;

import com.pc.ipushpin.business.dao.LabelMapper;
import com.pc.ipushpin.business.dao.UserMapper;
import com.pc.ipushpin.business.model.Label;
import com.pc.ipushpin.business.model.User;
import com.pc.ipushpin.business.service.ILabelService;
import com.pc.ipushpin.business.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("labelService")
public class LabelService implements ILabelService {

    @Resource
    private LabelMapper mapper;

    @Override
    public int addLabel(Label label) {
        return mapper.insert(label);
    }

    @Override
    public List<Label> findAllByCompanyId(String companyId) {
        return mapper.findAllByCompanyId(companyId);
    }
}
